//Created by MyEclipse Struts
// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_4.1.0/xslt/JavaClass.xsl

package cn.agiledata.bank.transaction.form;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import cn.agiledata.bank.common.form.BankBean;
import cn.agiledata.bank.common.util.WeatherUtil;
import cn.agiledata.bank.hibernateBean.Account;
import cn.agiledata.bank.hibernateBean.ActionType;
import cn.agiledata.bank.hibernateBean.FeeRatio;
import cn.agiledata.bank.hibernateBean.SubAccount;

/** 
 * MyEclipse Struts
 * Creation date: 2006-04-07
 * 
 * XDoclet definition:
 * @struts.form name="fillMoneyForm"
 */
public class FillMoneyForm extends ActionForm {
	
	private String errorMsg;
	
	private String id;
	private boolean ifFinished = false;

	//默认为银行卡充值
    private long actionType = 1;

	// --------------------------------------------------------- Methods

    private int whichPage = 0;
    
    //充值金额
    private String account ;
    
    //备注
    private String remark ;
    
    //交易id
    private String transactionId;
    
    private ActionType at;
    
    //银行卡代码
    private String bankType;
    //开户行名称
    private String bankName;
  
    //银行卡号
    private String bankNum;
   
    private String openBank;
    
    private String provSeq;
    private String provName;
    
    private String citySeq;
    private String cityName;
    
    
    //付款方
    private SubAccount debit;
    
    private String accountEmail;
    
    //收款方
    private SubAccount credit;

    private Account debitAccount;
    
    private Account creditAccount;
    
    //登录信息
    private Account loginAccount;
    
    private String debitEmail;
    
    private String creditEmail;
    
    private String creditEmailBySelect;
    
    private String tradeType;
    
    //商品信息
    private String perchInfo;
    
    //银行卡号
    private String cardNo;
    
    //线下汇款序列号
    private String downsiteSerial;
    
    //手续费用
    private double ratio;  
    
    //支付密码
    private String pinkUpPass;
    
    
    //收款人手机：
    private String creditMobile;
    
    //收款人姓名：
    private String creditName;
    
    //收款人电话：
    private String creditPhone;
    
    private String tranFrom;
    
    private String radioType;
    
    private String bankInfo;
    
    private String personName;	//付款人名称
   
    private String purpose;//付款时填写资金用途
    
    

	public String getPurpose() {
		return purpose;
	}

	public void setPurpose(String purpose) {
		this.purpose = purpose;
	}

	public String getBankInfo() {
		return bankInfo;
	}

	public void setBankInfo(String bankInfo) {
		this.bankInfo = bankInfo;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRadioType() {
		return radioType;
	}

	public void setRadioType(String radioType) {
		this.radioType = radioType;
	}

	public String getCreditMobile() {
		return creditMobile;
	}

	public void setCreditMobile(String creditMobile) {
		this.creditMobile = creditMobile;
	}

	public String getCreditName() {
		return creditName;
	}

	public void setCreditName(String creditName) {
		this.creditName = creditName;
	}

	public String getCreditPhone() {
		return creditPhone;
	}

	public void setCreditPhone(String creditPhone) {
		this.creditPhone = creditPhone;
	}

	public String getPinkUpPass() {
		return pinkUpPass;
	}

	public void setPinkUpPass(String pinkUpPass) {
		this.pinkUpPass = pinkUpPass;
	}

	public double getRatio() {
		return ratio;
	}

	public void setRatio(double ratio) {
		this.ratio = ratio;
	}

	public String getDownsiteSerial() {
		return downsiteSerial;
	}

	public void setDownsiteSerial(String downsiteSerial) {
		this.downsiteSerial = downsiteSerial;
	}

	public Account getLoginAccount() {
		return loginAccount;
	}

	public void setLoginAccount(Account loginAccount) {
		this.loginAccount = loginAccount;
	}

	public SubAccount getCredit() {
		return credit;
	}

	public void setCredit(SubAccount credit) {
		this.credit = credit;
	}

	public SubAccount getDebit() {
		return debit;
	}

	public void setDebit(SubAccount debit) {
		this.debit = debit;
	}

	public String getBankType() {
		return bankType;
	}

	public void setBankType(String bankType) {
		this.bankType = bankType;
	}

	public ActionType getAt() {
		return at;
	}

	public void setAt(ActionType at) {
		this.at = at;
	}

	public String getTransactionId() {
		return transactionId;
	}

	public void setTransactionId(String transactionId) {
		this.transactionId = transactionId;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public int getWhichPage() {
		return whichPage;
	}

	public void setWhichPage(int whichPage) {
		this.whichPage = whichPage;
	}


	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(
		ActionMapping mapping,
		HttpServletRequest request) {

		// TODO Auto-generated method stub
		return null;
	}

	/** 
	 * Method reset
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
//		if (this.isIfFinished()){
//		WeatherUtil.cleanForm(this);
//		}
		// TODO Auto-generated method stub
	}

	public long getActionType() {
		return actionType;
	}

	public void setActionType(long actionType) {
		this.actionType = actionType;
	}

	String native2unicode(String s) {
		if (s == null || s.length() == 0) {
			return null;
		}

		byte[] buffer = new byte[s.length()];

		for (int i = 0; i < s.length(); i++) {
			buffer[i] = (byte) s.charAt(i);
		}

		return new String(buffer);
	}

	String unicode2native(String s) {
		if (s == null || s.length() == 0) {
			return null;
		}

		char[] buffer = new char[s.length() * 2];

		char c;
		int j = 0;
		for (int i = 0; i < s.length(); i++) {
			if (s.charAt(i) >= 0x100) {
				c = s.charAt(i);
				byte[] buf = ("" + c).getBytes();
				buffer[j++] = (char) buf[0];
				buffer[j++] = (char) buf[1];
			} else {
				buffer[j++] = s.charAt(i);
			}
		}

		return new String(buffer, 0, j);
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getCreditEmail() {
		return creditEmail;
	}

	public void setCreditEmail(String creditEmail) {
		this.creditEmail = creditEmail;
	}

	public String getDebitEmail() {
		return debitEmail;
	}

	public void setDebitEmail(String debitEmail) {
		this.debitEmail = debitEmail;
	}

	public String getPerchInfo() {
		return perchInfo;
	}

	public void setPerchInfo(String perchInfo) {
		this.perchInfo = perchInfo;
	}

	public String getTradeType() {
		return tradeType;
	}

	public void setTradeType(String tradeType) {
		this.tradeType = tradeType;
	}

	public Account getCreditAccount() {
		return creditAccount;
	}

	public void setCreditAccount(Account creditAccount) {
		this.creditAccount = creditAccount;
	}

	public Account getDebitAccount() {
		return debitAccount;
	}

	public void setDebitAccount(Account debitAccount) {
		this.debitAccount = debitAccount;
	}

	public String getBankNum() {
		return bankNum;
	}

	public void setBankNum(String bankNum) {
		this.bankNum = bankNum;
	}

	public String getCitySeq() {
		return citySeq;
	}

	public void setCitySeq(String citySeq) {
		this.citySeq = citySeq;
	}

	public String getProvSeq() {
		return provSeq;
	}

	public void setProvSeq(String provSeq) {
		this.provSeq = provSeq;
	}

	public String getOpenBank() {
		return openBank;
	}

	public void setOpenBank(String openBank) {
		this.openBank = openBank;
	}

	public boolean isIfFinished() {
		return ifFinished;
	}

	public void setIfFinished(boolean ifFinished) {
		this.ifFinished = ifFinished;
	}

	public String getCreditEmailBySelect() {
		return creditEmailBySelect;
	}

	public void setCreditEmailBySelect(String creditEmailBySelect) {
		this.creditEmailBySelect = creditEmailBySelect;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public String getTranFrom() {
		return tranFrom;
	}

	public void setTranFrom(String tranFrom) {
		this.tranFrom = tranFrom;
	}

	public String getAccountEmail() {
		return accountEmail;
	}

	public void setAccountEmail(String accountEmail) {
		this.accountEmail = accountEmail;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getProvName() {
		return provName;
	}

	public void setProvName(String provName) {
		this.provName = provName;
	}

	public String getPersonName() {
		return personName;
	}

	public void setPersonName(String personName) {
		this.personName = personName;
	}

	
}

